// Include files.
#include "WPILib.h"
#include "GenericHidDigitalInput.hpp"

/**
 *  Constructor for GenericHidDigitalInput.
 * 	
 * 	@param driverStationIo A reference to a GenericHID (such as a Joystick).  User is still reponsible for deletion of parameter.
 * 	@param button The number that represents the button on the GenericHID.
 */
GenericHidDigitalInput::GenericHidDigitalInput(GenericHID &genericHid, int button) :
	m_genericHid(genericHid),
	m_button(button)
{
}

/**
 *  Destructor for GenericHidDigitalInput.
 */
GenericHidDigitalInput::~GenericHidDigitalInput()
{
}

bool GenericHidDigitalInput::Get()
{
	return m_genericHid.GetRawButton(m_button);
}
